package net.csdn.business.discuss.common.model.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.LinkedList;

/**
 * @ClassName DiscussCreateActivityDTO
 * @Description TODO
 * @Author zhangyl
 * @Date 2023/7/22 13:48
 */
@Data
public class SendDiscussAuditDTO extends BaseAuditDTO{
    /** id */
    @NotBlank(message = "id不能为空")
    private String id;
    /** 标题 */
    @NotBlank(message = "title不能为空")
    private String title;
    /** 内容 */
    @NotBlank(message = "content不能为空")
    private String content;
    /** mdContent */
    @NotBlank(message = "content不能为空")
    private String mdContent;

    /** 创建人 */
    @NotBlank(message = "content不能为空")
    private String createdBy;

    @NotNull(message = "createdDate不能为空")
    private Date createdDate;

    /**
     * action:1:新增；2：删除
     */
    @NotNull(message = "action不能为空")
    @Range(min = 1, max = 3, message = "action不合法")
    private Integer action;

    /** 投票内容 */
    private String question;

    /** 投票选项 */
    private LinkedList<String> options;

    private String serialNumber;
}
